<?php
		require('config.php');

        $orderId=$_REQUEST['orderId'];
		$sql="select * from `".$oto."_orders`,`".$oto."_order_goods` where ".$oto."_orders.orderId=".$oto."_order_goods.orderId and ".$oto."_orders.orderId='{$orderId}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$order_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($order_info)) $data[0]['img']=$order_info[0]['goodsThums'];
		else $data[0]['img']='';
		$sql="select * from `".$oto."_order_express`,`".$oto."_express` where ".$oto."_order_express.exId=".$oto."_express.id and orderId='{$orderId}'";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$express_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(!isset($express_info))
		{
			$data[0]['wuliu_name']='无';
			$data[0]['wuliu_no']=0;
			$data[0]['wuliu_pinyin']=0;
		}
		else
		{
			$data[0]['wuliu_name']=$express_info[0]['expressCompany'];
			$data[0]['wuliu_no']=$express_info[0]['trackNumber'];
			$data[0]['wuliu_pinyin']=$express_info[0]['pinyin'];
		}
		echo json_encode($data);
?>